* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;    
}

html {
    height: 100%;
}

.box {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    /* background: linear-gradient(to top left, #ffe29f, #ffa99f, #ff719a); */
    background: linear-gradient(200deg, #72afd3, #96fbc4);
    overflow: hidden;
}

.container {
    text-align: center;
    color: #fff;
}

.container h1 {
    font-size: 40px;
    font-weight: 100;
    letter-spacing: 2px;
    margin-bottom: 5px;
    transition: 1s ease-in-out;
}

.form {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.3s;
}

.form input {
    /* focus之后的黑色轮廓线取消 */
    width: 250px;
    outline: none;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 15px;
    border-radius: 3px;
    margin: 0 auto 10px auto;
    text-align: center;
    color: #fff;
    font-size: 15px;
    transition: all .3s;
}

.form-error {
    border: 1px solid #ff5765!important;
    transition: all .3s;
}
.form-error2 {
    border: 1px solid #ff5765!important;
    transition: all .3s;
}

/*设置placeholder的样式 */
.form input::placeholder {
    color: #fff;
    font-size: 14px;
    font-weight: 300;
}

.form input:hover {
    background: rgba(255, 255, 255, 0.4);
}

.form input:focus {
    width: 300px;
    background: rgba(255, 255, 255, 0.35);
    color: #132c33;
}

.btn-login {
    outline: none;
    background: #fff;
    border: none;
    color: #132c33;
    width: 250px;
    padding: 10px 15px;
    border-radius: 3px;
    font-size: 15px;
    cursor: pointer;
    transition: all .5s;
}

.btn-login:hover {
    background: #f5f7f7;
}

/* 背景方块 */
.bg-squares {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    list-style: none;
    z-index: 1;
    overflow: hidden;
}

.bg-squares li {
    position: absolute;
    bottom: -160px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    /* 执行动画：动画名 时长 线性 无限次播放 */
    animation: square 2s linear infinite;
}

/* 为每一个方块设置不同的位置、大小、动画延迟时间、动画时长、背景色 */
.bg-squares li:nth-child(1) {
    left: 7%;
}

.bg-squares li:nth-child(2) {
    left: 14%;
    width: 80px;
    height: 80px;
    /* 动画延迟时间 */
    animation-delay: 2s;
    /* 动画时长 */
    animation-duration: 17s;
}

.bg-squares li:nth-child(3) {
    left: 25%;
    animation-delay: 4s;
    animation-duration: 10s;
}

.bg-squares li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.25);
    animation-duration: 22s;
}

.bg-squares li:nth-child(5) {
    left: 70%;
    animation-delay: .5s;
    animation-duration: 13.5s;
}

.bg-squares li:nth-child(6) {
    left: 80%;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    animation-delay: 2s;
}

.bg-squares li:nth-child(7) {
    left: 32%;
    width: 160px;
    height: 160px;
    animation-delay: 8s;
}

.bg-squares li:nth-child(8) {
    left: 55%;
    width: 20px;
    height: 20px;
    animation-delay: 15s;
    animation-duration: 40s;
}

.bg-squares li:nth-child(9) {
    left: 25%;
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    animation-delay: 2s;
    animation-duration: 40s;
}

.bg-squares li:nth-child(10) {
    left: 83%;
    width: 160px;
    height: 160px;
    animation-delay: 11s;
}

/* 定义动画 */
@keyframes square {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-120vh) rotate(600deg);
    }
}

.container.success h1 {
    transform: translateY(75px);
}

.container.success .form {
    opacity: 0;
}

.error-message {
    transform: translateY(10px);
}
.error-button {
    transform: translateY(10px);
}
.error-button20 {
    transform: translateY(20px);
}